/*
 * @Author: wxx
 * @Date: 2022-02-28 16:46:57
 * @LastEditors: wxx
 * @LastEditTime: 2022-02-28 16:56:58
 * @Description: file content
 */
function dateFrmat(dataStr) {
    const dt = new Date(dataStr)
    const y = dt.getFullYear()
    const m = ling(dt.getMonth() + 1)
    const d = ling(dt.getDate())

    const hh = ling(dt.getHours())
    const mm = ling(dt.getMinutes())
    const ss = ling(dt.getSeconds())

    return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
}
function ling(n) {
    return n > 9 ? n : "0" + n
}
exports.dateFrmat = dateFrmat